SftTree/NET 2.0

FocusCell Property, SftTree Class

Softel vdm, Inc.

Defines the cell that is the focus object.

Syntax      SftTree Class (Softelvdm.SftTreeNET)

VB   

Public Property FocusCell As CellClass

C#   

public CellClass FocusCell { get; set; }

C++   

public: property CellClass^ FocusCell {
        CellClass^ get();
        void set(CellClass^ value);
}

Property Value

The focus object or null/Nothing if there is no focus object.

The default value is null/Nothing.

Comments

The FocusCell property defines the cell that is the focus object.

The current cell is the cell that has the focus rectangle.

The focus rectangle is controlled using the ShowFocusRectangle property. The size of the focus rectangle is consistent with the current selection style (SelectionStyle).

The focus cell is not necessarily also selected (CellClass.Selected).

When the user changes the current cell, the FocusObjectChange event occurs. The SelectionChange event occurs when the selection changes.

The FocusItem and FocusCell properties define the focus object and are identical to the FocusObject property but accept an item (ItemClass) or a cell (CellClass) instead of the more generic object.


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com